import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * business模块-产品-B-列表
 */
@Entity('business_product_b_list')
export class BusinessProductBListEntity extends BaseEntity {
  @Index()
  @Column({ comment: '名称', length: 50 })
  name: string;

  @Index({ unique: true })
  @Column({ comment: '编号', length: 50 })
  code: string;

  @Column({ comment: '分类ID' })
  categoryId: number;

  @Column({ comment: '备注', nullable: true })
  description: string;

  @Column({ comment: '分数', nullable: true })
  score: string;

  @Column({ comment: '状态 0-禁用 1-启用', default: 1 })
  status: number;

  @Column({ comment: '打印状态 0-未打印 1-已打印', default: 0 })
  printStatus: number;

  @Column({ comment: '描述1', nullable: true })
  describeA: string;

  @Column({ comment: '描述2', nullable: true })
  describeB: string;

  @Column({ comment: '描述3', nullable: true })
  describeC: string;

  @Column({ comment: '描述4', nullable: true })
  describeD: string;

  @Column({ comment: '描述5', nullable: true })
  describeE: string;

  @Column({ comment: '批次ID' })
  batchId: number;

  @Column({ comment: '用户ID' })
  userId: number;

  @Column({ comment: '图库ID', nullable: true })
  galleryId: number;
}
